# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=caribou
pkgver=0.4.21
pkgrel=4
pkgdesc="on screen keyboard implementation"
url="https://wiki.gnome.org/Projects/Caribou"
arch="all"
license="LGPL-2.1-only"
makedepends="gtk+2.0-dev gtk+3.0-dev clutter-dev libxklavier-dev libgee-dev
	intltool itstool libxml2-dev libxslt py3-gobject3-dev gobject-introspection-dev
	py3-gobject3"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/caribou/${pkgver%.*}/caribou-$pkgver.tar.xz
	13df8b92ae89c796238e669ee6ef4447a42d6355.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5fc0cf54a1cad50d41e659adbbb932b51d69d18951562f87497e99aaae17ac72b453b759dd7289ff8f68a79574dfce510b9de6bedc61408c14cb48b83eaf08da  caribou-0.4.21.tar.xz
5b8f975813b6804e6c90419d44171b745074bd0cb9b0ee969fbb2dc993796af67585358788fb145ff93e18dffa049da05292bcec09359f387b6353adbdb67e39  13df8b92ae89c796238e669ee6ef4447a42d6355.patch"
